<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateFriendshipLinksTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('friendship_links', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->default('')->comment('博客名');
            $table->string('logo')->default('')->comment('图标');
            $table->string('href')->default('')->comment('友链');
            $table->tinyInteger('status')->default(0)->comment('0=未审核 1=审核通过 2=审核失败');
            $table->text('describe')->comment('描述');
            $table->string('type')->default('')->comment('博客类型');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('friendship_links');
    }
}
